page {
  background: #f2f2f2;
  height: 100%;
  font-size: 28rpx;
}

.c-book-piece {
  display: flex;
  align-items: center;
  margin: 0 8px 8px;
  border-radius: 4px;
  background: #fff;
  padding: 8px;
  position: relative;
  padding-bottom: 24px;
  &.hover {
    background: #f8f8f8;
  }
  .cover-image {
    display: flex;
    margin-right: 8px;
    image {
      width: 180rpx;
      height: 180rpx;
    }
  }
  .detail-box {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    .title {
      font-weight: bolder;
      font-size: 28rpx;
      color: #666;
    }
    .sub-title {
      display: flex;
      color: #777;
      font-weight: 100;
      .sub-title-left {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .sub-title-right {
        flex: 1 0 auto;
        min-width: 0;
        padding-left: 5px;
      }
    }
    .desc {
      font-size: 12px;
      color: #999;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .desc-line-2 {
      -webkit-line-clamp: 2;
      max-height: 36px;
    }
    .desc-line-3 {
      -webkit-line-clamp: 3;
      max-height: 54px;
    }
    .desc-line-8 {
      -webkit-line-clamp: 8;
      max-height: 148px;
    }
    .book-count {
      position: absolute;
      right: 8px;
      bottom: 0px;
      color: #fff;
      background: #b2b2b2;
      padding: 0px 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 66%;
    }
    .footer-bar {
      display: flex;
      align-items: center;
      margin-top: 8px;
      .sale-price {
        color: #be6a5b;
        font-size: 28rpx;
      }
      .price {
        padding: 0 4px;
        margin-left: 5px;
        font-size: 24rpx;
        background: #fdf3da;
        color: #d7c18f;
      }
    }
  }
}
